﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace NavigationBarDemo.Controls.NavigationBar
{
    /// <summary>
    /// 导航按钮
    /// </summary>
    public class NavigationButton : RadioButton
    {
        public NavigationButton()
        {
            DefaultStyleKey = typeof(NavigationButton);
        }

        public static readonly DependencyProperty TextProperty = DependencyProperty.Register(
            "Text", typeof(string), typeof(NavigationButton), null);

        public string Text
        {
            get { return (string)GetValue(TextProperty); }
            set
            {
                Content = value;
                SetValue(TextProperty, value);
            }
        }
        public ImageSource ImageSource { get; set; }
        public ImageSource ActiveImageSource { get; set; }
        public ImageSource DisableImageSource { get; set; }
    }
}
